<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <style>
        div
        {
            width:100px;
            height:100px;
            background:red;
            border-radius: 50%;
            position:relative;
            animation:myfirst 1s infinite;
            /*-webkit-animation:myfirst 5s; */
        }

        @keyframes myfirst
        {
            0%   {background:red; left:0px; top:0px;}
            25%  {background:yellow; left:0px; top:200px;}
            50%  {background:blue; left:200px; top:0px;}
            75%  {background:green; left:200px; top:200px;}
            100% {background:red; left:0px; top:0px;}
           /* 0px   {background:red; left:0px; top:0px;}
            200px  {background:yellow; left:200px; top:0px;}
            400px  {background:blue; left:200px; top:200px;}
            200px  {background:green; left:0px; top:200px;}
            0px {background:red; left:0px; top:0px;}*/
        }

    </style>
</head>
<body>


<div></div>

</body>
</html>
